package klasy.powtorka;

import java.util.Arrays;

public class Tablice {

	public static void main(String[] args) {

		int[] a = new int[100];
		
		for(int i = 0; i < a.length; i++)
			a[i] = i +1;
		
//		for(int e : a)
//			System.out.printf("%4d ", e);
		
		System.out.println();
//		System.out.println(a.toString());
//		System.out.println(Arrays.toString(a));
		
		int[] smallPrimes = {2, 3, 5, 7, 11, 13};
		int[] luckyNumbers = {1001, 1002, 1003, 1004, 1005, 1006, 1007};
		
		int[] copiedLyckyNumbers = Arrays.copyOf(luckyNumbers, luckyNumbers.length - 2);
		System.out.println(Arrays.toString(copiedLyckyNumbers));
		
		int[] newTable = Arrays.copyOf(smallPrimes, smallPrimes.length);
		System.out.println(Arrays.toString(newTable));
		
		
	}

}
